/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.riversoft.weixin.gateway;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @author johns
 */
@Configuration
public class AesConfig {

    @Value("aes.pswd")
    private String password;
    
    @Bean
    public AESUtil aesUtil() {
        return new AESUtil(password);
    }
}
